---------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log: logofFig4and5.log
  log type:  text
 opened on:  10 Sep 2019, 12:48:28

. 
. 
. use "$data/Sinaloa_Homicides", clear

. 
. keep if muncode=="25009" | muncode=="25010"
(305 observations deleted)

. drop if year==2018
(2 observations deleted)

. 
. twoway (line thom year if muncode=="25010") ///
>         (line thom year if muncode=="25009"), ///
>         legend(label(1 "El Fuerte, SIN") label(2 "Escuinapa, SIN") r(1) position(6)) ///
>         ylabel(0(30)150) xlabel(2000(1)2017, labsize(vsmall)) ///
>         ytitle("Rate per 100,000 people") xtitle(Year) ///
>         xline(2008, lcolor(black) lpattern(solid))

.         
.         graph export "$fig/Fig4.tif", replace

.         
. use "$data/Sinaloa_HR", clear   

. 
. twoway (line sedenarate year) ///
>         (line polfedrate year), ///
>         legend(label(1 "Military(SEDENA)") label(2 "Federal Police") r(1) position(6)) ///
>         ylabel(0(10)50) xlabel(2008(1)2017, labsize(small)) ///
>         ytitle("Rate per 1,000 personnel") xtitle(Year)

.         
.         graph export "$fig/Fig5.tif", replace
. 
end of do-file

. clear

. exit
